extends SpotLight

export var startDir:Vector3
export var endDir:Vector3
var tween:Tween
# Called when the node enters the scene tree for the first time.
func _ready():
	tween=Tween.new()
	add_child(tween)
	tween.interpolate_property(self,'rotation_degrees',startDir,endDir,10,Tween.TRANS_CIRC,Tween.EASE_IN)
	tween.interpolate_property(self,'rotation_degrees',endDir,startDir,10,Tween.TRANS_CIRC,Tween.EASE_OUT)
	tween.repeat=true
	tween.start()
	pass # Replace with function body.
	



